package com.example.demo.service;

import com.example.demo.entity.MeetingUsage;
import com.example.demo.mapper.MeetingUsageMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MeetingUsageServiceImpl implements MeetingUsageService{

    @Resource
    private MeetingUsageMapper meetingUsageMapper;
    @Override
    public void saveMeetingUsage(List<MeetingUsage> meetingUsages) {
        if (meetingUsages != null && !meetingUsages.isEmpty()) {
            for (MeetingUsage meetingUsage : meetingUsages) {
                meetingUsageMapper.insert(meetingUsage);
            }
        }
    }
}
